var status = -1;
var selectionLog = [];

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            if (cm.getNumberFromQuestInfo(32689, "enter") > 0) {
                cm.fieldEffect_复合图片动画(["Map/Effect2.img/Blizzard/skeleton", "normal", "", ""], [1, 1, 0, 0, 0, 0, 0, 0]);
                cm.setAmbience("SoundEff.img/DLep4/war2", 80, 60)
            }
            cm.sendNormalTalk_Bottom("还好城墙足够结实，只要拦住爬上来的家伙就行。", 57, 0, false, false);
            cm.dispose()
        }
    }
}

function start() {
    status = -1;
    action(1, 0, 0)
};